    /**
    * Show a list of all the {{ model_name }}s.
    *
    * @return View
    */
    public function getIndex()
    {
        // Grab all the {{ model_name }}s
        ${{ model_name }}s = new {{ model_class }}();

{% if softdelete %}
        // Do we want to include the deleted {{ model_name }}s?
        if (Input::get('withTrashed'))
        {
            ${{ model_name }}s = ${{ model_name }}s->withTrashed();
        }
        else if (Input::get('onlyTrashed'))
        {
            ${{ model_name }}s = ${{ model_name }}s->onlyTrashed();
        }
{% endif %}

        // Paginate the {{ model_name }}s
        ${{ model_name }}s = ${{ model_name }}s->paginate({{ pager_limit|default(50) }})
{% if softdelete %}
            ->appends(array(
                'withTrashed' => Input::get('withTrashed'),
                'onlyTrashed' => Input::get('onlyTrashed'),
            ))
{% endif %}
        ;

        // Show the page
        return View::make('{{ namespace|replace({'\\': '.'}) }}.{{ model_class }}.index', compact('{{ model_name }}s'));
    }
